package day12;

public class T2 {
    public static void main(String[] args) {
        TestForm form = new TestForm();
        form.setId(1);
        int id = 2;
        change(1,form);
        System.out.println("id=" + id);
        System.out.println("form Id" + form.getId());
    }

    public static void change(int id, TestForm form){
        id = 4;
        form.setId(id);
    }
}

class TestForm{
    private int id;

    public void setId(int id){
        this.id = id;
    }

    public int getId(){
        return id;
    }
}
